/**
 * Created by felix on 2017/2/25.
 */
import React from 'react';
import _ from 'lodash';

function THead({ cols }) {
    const items = _.map(cols, (col, i) => (
        <th key={`th_${i}`}>
            {col.title}
        </th>
    ));
    return (
        <thead>
            <tr>
                {items}
            </tr>
        </thead>
    );
}

export default THead;
